Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core java - Interview Questions and Answers for 'Ross group' - 2 question(s) found - Order By Newest | ||||
| ||||
Ans. Access modifiers are the java reserved keywords that changes the access privileges on a class , method , element etc. For example - public , private and protected. Non Access modifiers are the java modifiers other than access modifiers. For example - static , final, abstract, synchronized, transient, volatile etc. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  access modifiers Asked in 2 Companies | ||||
Related Questions | ||||
What are the common uses of "this" keyword in java ? | ||||
Which of the following combination of keywords is illegal in Java ? a. static and transient b. transient and final c. static and synchronized d. abstract and final | ||||
Which keyword is used to provide explicit access of a code block to single thread ? a. Transient b. Final c. Explicit d. Synchronized | ||||
How does volatile affect code optimization by compiler? | ||||
What is Volatile keyword used for ? | ||||
Can we access instance variables within static methods ? | ||||
What is the use of Transient Keyword ? | ||||
When we say final x = 10, is the reference final or the value ? | ||||
What is a Final Method ? | ||||
What is a Final Class ? | ||||
| ||||
Ans. Scope modifiers changes the scope of a particular element or a method. For ex - static changes the scope of that of class and not of object. Access modifiers changes the access priviledges of a particular element or a method. For ex - private , public etc. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  scope modifiers   access modifiers   scope vs access modifiers Asked in 2 Companies basic | ||||
Related Questions | ||||
Can a class be declared "protected" ? | ||||
Name few access and non access Class Modifiers ? | ||||
What is the difference between public class and class ? | ||||
What are access and non access modifiers ? | ||||